package com.ruoyi.goodsInfo.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.goodsInfo.service.PhoneBrandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/phoneBrand")
@Api("")
public class PhoneBrandController {



    @Autowired
    private PhoneBrandService phoneBrandService;

    @GetMapping
    @ApiOperation("获取全部手机品牌信息")
    public AjaxResult getAllBrand(){
        return AjaxResult.success(phoneBrandService.list());
    }

}
